#ifndef QUERY_H
#define QUERY_H
#include "../global.h"

#include <QWidget>

namespace Ui {
class Query;
}

class Connector;
class Company;

class Query : public QWidget {
    Q_OBJECT

  public:
    explicit Query(QWidget *parent,Connector *connector);
    ~Query();
    void query();
  public slots:
    void showDetail(int row,int column);
    void singleQuery();
    void batchQuery();
    void selectFile();
    void pageHead();
    void pageTail();
    void pageUp();
    void pageDown();
    void pageJump(int);
    void comboSelect(int);

  private:
    Ui::Query *ui;
  public:
    int pageCurr;
    int pageTotal;
    Connector *connector;
    QStringList *entnameList;
    QList<Company *> *companyList;
};

#endif // QUERY_H
